package com.ruoyi.aqi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.aqi.mapper.AirQualityDayMapper;
import com.ruoyi.aqi.domain.AirQualityDay;
import com.ruoyi.aqi.service.IAirQualityDayService;

/**
 * 空气质量天Service业务层处理
 * 
 * @author houtaroy
 * @date 2024-03-25
 */
@Service
public class AirQualityDayServiceImpl implements IAirQualityDayService 
{
    @Autowired
    private AirQualityDayMapper airQualityDayMapper;

    /**
     * 查询空气质量天
     * 
     * @param id 空气质量天主键
     * @return 空气质量天
     */
    @Override
    public AirQualityDay selectAirQualityDayById(Integer id)
    {
        return airQualityDayMapper.selectAirQualityDayById(id);
    }

    /**
     * 查询空气质量天列表
     * 
     * @param airQualityDay 空气质量天
     * @return 空气质量天
     */
    @Override
    public List<AirQualityDay> selectAirQualityDayList(AirQualityDay airQualityDay)
    {
        return airQualityDayMapper.selectAirQualityDayList(airQualityDay);
    }

    /**
     * 新增空气质量天
     * 
     * @param airQualityDay 空气质量天
     * @return 结果
     */
    @Override
    public int insertAirQualityDay(AirQualityDay airQualityDay)
    {
        return airQualityDayMapper.insertAirQualityDay(airQualityDay);
    }

    /**
     * 修改空气质量天
     * 
     * @param airQualityDay 空气质量天
     * @return 结果
     */
    @Override
    public int updateAirQualityDay(AirQualityDay airQualityDay)
    {
        return airQualityDayMapper.updateAirQualityDay(airQualityDay);
    }

    /**
     * 批量删除空气质量天
     * 
     * @param ids 需要删除的空气质量天主键
     * @return 结果
     */
    @Override
    public int deleteAirQualityDayByIds(Integer[] ids)
    {
        return airQualityDayMapper.deleteAirQualityDayByIds(ids);
    }

    /**
     * 删除空气质量天信息
     * 
     * @param id 空气质量天主键
     * @return 结果
     */
    @Override
    public int deleteAirQualityDayById(Integer id)
    {
        return airQualityDayMapper.deleteAirQualityDayById(id);
    }
}
